package com.xingkeduo.pojo.remote.feign;
import com.xingkeduo.pojo.dto.Shops.CraftsmanShopDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import com.xingkeduo.tool.ResponseUtils;
import com.xingkeduo.util.config.FeignConfig;

@FeignClient(value = "business-user", configuration = FeignConfig.class)
public interface AdminFeignService {

    /**
     * 查询店铺下绑定的发型师
     * @param craftsmanid
     * @param shopId
     * @return
     */
    @GetMapping("/craftsman/shop/{craftsmanid}")
    String getCratfsmanShop(@PathVariable("craftsmanid") String craftsmanid,@RequestParam("shopId") String shopId);

    /**
     * 删除店铺时查询是否有绑定的发型师
     * @param shopId
     * @return
     */
    @GetMapping("/craftsman/shop/check/craftsman/{shopid}")
    String getHaveCratfsmanShop(@RequestParam("shopid") String shopId);

    /**
     * 查询用户基本信息 pantong 
     * @param f_user_id 用户ID
     * @param time
     * @param token
     * @param mobile_type 
     * @return
     */
    @RequestMapping("/consumer/getBasicUserInfo")
    ResponseUtils getBasicUserInfo(@RequestParam(value = "f_user_id")long f_user_id, @RequestParam(value = "time")String time, @RequestParam(value = "token")String token, @RequestParam(value = "mobile_type")String mobile_type);

    
    /**
     * @desc：根据店铺id、服务类型、发型师id（非必填）获取发型师配置的调价价格信息 
     * @author: pantong  
     * @date: 2019年5月8日 下午10:06:03
     */
    @GetMapping("/craftsman/service/listCraftsmanPriceByShopIdAndServiceId")
    ResponseUtils listCraftsmanPriceByShopIdAndServiceId(@RequestParam(value = "shopId")Long shopId,@RequestParam("serviceId") Long serviceId ,@RequestParam("craftsmanId") Long craftsmanId);

    /**
     * @desc：获取店铺可约发型师craftsmanIds下提供某个服务的发型师列表信息（含价格 价格取该店铺发型师配置的价格 如果没有配置返回空即可）pantong  2019年6月1日下午5:47:03
     * @author: pantong  
     * @date: 2019年5月8日 下午10:06:03
     */
    @GetMapping("/craftsman/service/listCraftsmanInfoByShopIdAndServiceId")
    ResponseUtils listCraftsmanInfoByShopIdAndServiceId(@RequestParam(value = "shopId")Long shopId,@RequestParam("serviceId") Long serviceId ,@RequestParam("craftsmanIds") String craftsmanIds);


    /**
     * 根据店铺ID获取店员和店经理
     * @param shopId
     * @return
     */
    @GetMapping("/craftsman/shop/manager/{shopid}")
    ResponseUtils<CraftsmanShopDTO> getCraftsmanShopInfo(@RequestParam("shopid") String shopId);


    @PostMapping("/craftsman/service/shop/update")
    String getChangeShopServprodInfo(@RequestBody String body);
}
